<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$title} 管理中心 - {$adminfirendname} </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/action.js"></script>
</head>
<body>
<h1>
<span class="action-span1">{$title} 管理中心  - {$adminfirendname} </span>
<div style="clear:both"></div>
</h1><!-- start add new category form -->
<div class="main-div">
  <form action="friendadd.php" method="POST" name="theForm" >
  <table id="general-table">
      <tr>
	<th>链接名称:</th>
        <td><input type="text" id="linkname" name="linkname" value="{if $linkinfo !=''}{$linkinfo.title}{/if}"></td>
	<td></td>
      </tr>
      <tr>
	<th>链接地址:</th>
        <td><input type="text" id="linkaddres" name="linkaddres" value="{if $linkinfo !=''}{$linkinfo.link}{/if}"></td>
	<td></td>
      </tr>
      <tr>
	<th>排序:</th>
        <td><input type="text" id="linkrank" name="linkrank" value="{if $linkinfo !=''}{$linkinfo.rank}{/if}"> <span>*输入的数值越大，显示越靠前</span></td>
	<td></td>
      </tr>
       <tr>
	<th>选择:</th>
        <td><select name="linksta" id="linksta">
        	<option value="0" {if $linkinfo !=''}{if $linkinfo.state == 0}selected{/if}{/if} > 显示</option>
        	<option value="1" {if $linkinfo !=''}{if $linkinfo.state == 1}selected{/if}{/if} > 不显示</option>
        </select></td>
	<td></td>
      </tr>
      </table>
      <div class="button-div">
	<input type="hidden" value="{$act}" name="act">
	<input type="hidden" value="{$linkid}" name="linkid">
        <input type="button" onclick="friendlink()" value=" 确定 " />
        <input type="reset" value=" 重置 " />
      </div>
  </form>
</div>
{include file="foot.tpl"}
</body>
</html>
